package com.admin.service;

import com.admin.entity.Admin;
import com.admin.entity.Apk;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author marisheng
 * @since 2019-11-21
 */
public interface IApkService extends IService<Apk> {

    /**
     * 查询普通Apk  以及根据条件查询
     */
    public IPage searchApkWithPageById(int page, int limit, int id,Map map);

    /**
     * 新增普通apk应用
     * @param apk
     * @param username
     * @return
     */
    public int addApk(Apk apk, String username);


    /**
     * 查询普通apk根据用户，Md5进行比较
     * @param apkMd5
     * @param apkAdmin
     * @return
     */
    public Apk selectApkMd5AndApkAdmin (String apkMd5,int apkAdmin);

    /**
     * 查所有未审核apk
     * @param page
     * @param limit
     * @param admin
     * @return
     */
    public IPage apkShenhe(int page, int limit, Admin admin);

    /**
     * apk未审核的数量
     * @return
     */
    public int apkWeishenheCount();

    Admin findAdminByPhone(String username);


    boolean updateAllStationByApk(Apk apk);
}
